package hsp.admin.app.literature.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import hsp.admin.app.base.po.BasePO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Schema(description = "名人表")
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("literature_celebrity")
public class CelebrityPO extends BasePO {

    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(description = "名称")
    @NotBlank
    @TableField("name")
    private String name;

    @Schema(description = "字")
    @TableField("word")
    private String word;

    @Schema(description = "称号")
    @TableField("alias_name")
    private String aliasName;

    @Schema(description = "真名")
    @TableField("real_name")
    private String realName;

    @Schema(description = "朝代")
    @TableField("dynasty")
    private String dynasty;

    @Schema(description = "头衔")
    @TableField("title")
    private String title;

    @Schema(description = "链接")
    @TableField("url")
    private String url;

    @Schema(description = "简介")
    @TableField("introduction")
    private String introduction;

    @Schema(description = "备注")
    @TableField("remark")
    private String remark;

}
